//
//  YCPhotoAnnotation.h
//  PhotoViewer
//
//  Created by 唐可雄 on 17/2/12.
//  Copyright © 2017年 swustyc. All rights reserved.
//

#import <Foundation/Foundation.h>

@import MapKit;
@import CoreLocation;
@import PhotoViewer;

@interface YCPhotoAnnotation : NSObject<MKAnnotation, YCPhoto>

- (id)initWithImagePath:(NSString *)imagePath title:(NSString *)title coordinate:(CLLocationCoordinate2D)coordinate;

@property (nonatomic, strong) UIImage *image;
@property (nonatomic, copy) NSString *imagePath;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *subtitle;
@property (nonatomic) CLLocationCoordinate2D coordinate;

@property (nonatomic, weak) YCPhotoAnnotation *clusterAnnotation;
@property (nonatomic, strong) NSArray *containedAnnotations;

- (void)updateSubtitleIfNeeded;

@end
